package com.HandleExceptioin;

/**
 * @Description:
 * @Author: suzr
 * @Date: 2019-7-22 17:24
 * @return:
 * @throws:
 */
public enum ExceptionEnum {
    OK("0", "成功"),
    FAIL("-1", "系统错误"),
    LOGINERR("-2", "登陆异常"),
    PARAM_EXCEPTION("2000", "参数异常"),

    UNKNOWN_ERR("2001", "未知错误"),

    UPDATEERR("2002", "更新失败"),

    INSERTERR("2003", "新增失败"),

    REGISTERERR("2004", "注册失败");

    private String code;
    private String message;

    ExceptionEnum(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public String getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
